<%@page import="sy.pageModel.OrderGoods"%>
<%@page import="sy.pageModel.Member"%>
<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<script type="text/javascript">
  
</script>
<div align="center">
	<form id="admin_order_goods_addForm" method="post">
		<table class="tableForm">
			<tr>
				<th>卡号</th>
				<td>
				    <input name="cardId" class="easyui-validatebox" data-options="required:true" />
				</td>
				<th></th>
				<td><input type="button" id="btnGetMemberInfo" value="获取会员信息" onclick="getMemberInfoAndAddressesByCardId('${pageContext.request.contextPath}', 'admin_order_goods_addForm');"/>
				</td>
			</tr>
			<tr>
				<th>姓名</th>
				<td><input name="name" readonly="readonly" class="easyui-validatebox" data-options="required:true"/>
				</td>
				<th>手机号</th>
				<td><input name="mobile" readonly="readonly" class="easyui-validatebox" data-options="required:true"/>
				</td>
			</tr>
			<tr>
				<th>会员类型</th>
				<td>
				    <select name="memberType" disabled="disabled">
				    <%
				        for(String key : Member.MEMBER_TYPE_MAP.keySet()) {
				    %>
						<option value="<%=key%>"><%=Member.MEMBER_TYPE_MAP.get(key)%></option>
				    <%
				        }
				    %>
					</select>
				</td>
			</tr>
			<tr>
				<th>商品类型</th>
				<td>
				    <select name="goodsType" onchange="setAgencySelection(this.value);">
					<%
				        for(String key : OrderGoods.GOODS_TYPE_MAP.keySet()) {
				    %>
						<option value="<%=key%>"><%=OrderGoods.GOODS_TYPE_MAP.get(key)%></option>
				    <%
				        }
				    %>
					</select>
				</td>
				<th>供货商</th>
				<td>
				    <select name="agencyId" onchange="setGoodsSelection(this.value);">
					</select>
				</td>
			</tr>
			<tr>
				<th>商品</th>
				<td colspan=3>
				    <select name="goodsId">
					</select>
				</td>
				
			</tr>
			<tr>
				<th>商品数</th>
				<td>
				    <input name="goodsCount" class="easyui-numberbox" min="1" precision="0" data-options="required:true"/>
				</td>
			</tr>
			<tr>
			    <th>收货地址</th>
			    <td colspan=3>
			    	<select name="addressId">
					</select>
			    </td>
			</tr>
		</table>
	</form>
</div>